package com.piaodekuai.flight.service;

import com.piaodekuai.flight.mapper.UserMapper;
import com.piaodekuai.flight.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired
    UserMapper userMapper;

    public List<User> userTest(){

        List<User> userList = userMapper.findAll();
        /*for(int i = 0; i<userList.size();i++){
            User user2= userList.get(i);
            System.out.println("service:"+user2.toString());
        }*/
        return userList;
    }

}
